package com.ruoyi.system.domain.project.standard;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标准对象 standard
 * 
 * @author ruoyi
 * @date 2025-08-28
 */
public class Standard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 标准名称 */
    @Excel(name = "标准名称")
    private String standardName;

    /** 标准类型 */
    @Excel(name = "标准类型")
    private String standardType;

    /** 标准编号 */
    @Excel(name = "标准编号")
    private String standardCode;

    /** 标准制定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "标准制定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date standardDate;

    /** 上传附件地址 */
    @Excel(name = "上传附件地址")
    private String attachment;

    private String userId;
    private String userName;
    private String currentRole;
    private String userType;

    private List<StandardTeacher> teachers;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setStandardName(String standardName) 
    {
        this.standardName = standardName;
    }

    public String getStandardName() 
    {
        return standardName;
    }

    public void setStandardType(String standardType) 
    {
        this.standardType = standardType;
    }

    public String getStandardType() 
    {
        return standardType;
    }

    public void setStandardCode(String standardCode) 
    {
        this.standardCode = standardCode;
    }

    public String getStandardCode() 
    {
        return standardCode;
    }

    public void setStandardDate(Date standardDate) 
    {
        this.standardDate = standardDate;
    }

    public Date getStandardDate() 
    {
        return standardDate;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("standardName", getStandardName())
            .append("standardType", getStandardType())
            .append("standardCode", getStandardCode())
            .append("standardDate", getStandardDate())
            .append("attachment", getAttachment())
            .toString();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public List<StandardTeacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(List<StandardTeacher> teachers) {
        this.teachers = teachers;
    }
}
